/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 jfinal app. jfapp Group.
 */

define(['adminapp'], function ($app) {
    $app.navactive('sms_stat');

    var $listtable = $app.listtable({
        'sAjaxSource' : g.ctx + "admin/stat/sms/list",
        'fnServerParams': function( aoData){
            var sd = $('#search_form').serializeJSON();
            $.each(sd, function(name, val){
                aoData.push({"name": name, "value": val});
            });
        },
        'aoColumns'   : [
            $app.checkall,
            $app.autono,
            {'mDataProp': 'send_phone' },
            {'mDataProp': 'send_content' },
            {'mDataProp': 'send_time' },
            {'mDataProp': 'return_status' },
            {'mDataProp': 'exception' }
        ]
    }, 'data-list');
});

